package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 种子购买信息对象 seed_purchase
 * 
 * @author ruoyi
 * @date 2021-07-07
 */
public class SeedPurchase extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主码 */
    private Long seedPurchaseId;

    /** 外码 */
    @Excel(name = "外码")
    private Long cropTypeId;

    /** 种子类型 */
    @Excel(name = "种子类型")
    private String seedType;

    /** 品种名称 */
    @Excel(name = "品种名称")
    private String varietyName;

    /** 购自公司 */
    @Excel(name = "购自公司")
    private String originCompany;

    /** 购买量 */
    @Excel(name = "购买量")
    private Long purchaseAmount;

    /** 购买时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "购买时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date purchaseTime;

    /** 单价 */
    @Excel(name = "单价")
    private Long price;

    /** 总价 */
    @Excel(name = "总价")
    private Long totalPrice;

    /** 备注 */
    @Excel(name = "备注")
    private String note;

    public void setSeedPurchaseId(Long seedPurchaseId) 
    {
        this.seedPurchaseId = seedPurchaseId;
    }

    public Long getSeedPurchaseId() 
    {
        return seedPurchaseId;
    }
    public void setCropTypeId(Long cropTypeId) 
    {
        this.cropTypeId = cropTypeId;
    }

    public Long getCropTypeId() 
    {
        return cropTypeId;
    }
    public void setSeedType(String seedType) 
    {
        this.seedType = seedType;
    }

    public String getSeedType() 
    {
        return seedType;
    }
    public void setVarietyName(String varietyName) 
    {
        this.varietyName = varietyName;
    }

    public String getVarietyName() 
    {
        return varietyName;
    }
    public void setOriginCompany(String originCompany) 
    {
        this.originCompany = originCompany;
    }

    public String getOriginCompany() 
    {
        return originCompany;
    }
    public void setPurchaseAmount(Long purchaseAmount) 
    {
        this.purchaseAmount = purchaseAmount;
    }

    public Long getPurchaseAmount() 
    {
        return purchaseAmount;
    }
    public void setPurchaseTime(Date purchaseTime) 
    {
        this.purchaseTime = purchaseTime;
    }

    public Date getPurchaseTime() 
    {
        return purchaseTime;
    }
    public void setPrice(Long price) 
    {
        this.price = price;
    }

    public Long getPrice() 
    {
        return price;
    }
    public void setTotalPrice(Long totalPrice) 
    {
        this.totalPrice = totalPrice;
    }

    public Long getTotalPrice() 
    {
        return totalPrice;
    }
    public void setNote(String note) 
    {
        this.note = note;
    }

    public String getNote() 
    {
        return note;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("seedPurchaseId", getSeedPurchaseId())
            .append("cropTypeId", getCropTypeId())
            .append("seedType", getSeedType())
            .append("varietyName", getVarietyName())
            .append("originCompany", getOriginCompany())
            .append("purchaseAmount", getPurchaseAmount())
            .append("purchaseTime", getPurchaseTime())
            .append("price", getPrice())
            .append("totalPrice", getTotalPrice())
            .append("note", getNote())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
